var http = require('http');
var linereader = require('./linereader');
var reader = linereader.createReader(function (line)
{
	console.log("Line: " + line.length);
});
http.get('http://www.google.com', function(res)
{
	res.on('data', function(chunk)
	{
		reader.append(chunk.toString());
	})
	res.on('end', function()
	{
		reader.close();
	})
});
